<html>
    <head>
        <meta charset='utf-8'>
		<script src="jquery-3.7.1.min.js"></script>
    </head>
    <body>
        <button onclick="ajaxload();">Загрузить</button>
        <div id="news"><h3>Нет новостей</h3></div>
        <script type="text/javascript">
        function ajaxload(){
            var xhr=new XMLHttpRequest();
            xhr.onreadystatechange=function(){
                if(this.readyState==4){
                    if(this.status >=200 && xhr.status < 300){
                        document.getElementById('news').innerHTML=this.responseText;
                    }
                }
            }
            xhr.open('GET', '/time');
            xhr.send();
        }
        </script>
    </body>
</html>